package com.lonewalker.sparrow.constant.enums;

import lombok.Getter;

/**
 * 服务异常枚举
 * @author lonewalker
 */
@Getter
public enum ServiceExceptionEnum {

    /**
     * 账号错误
     */
    ACCOUNT_ERROR(1000,"账号错误"),
    /**
     * 密码错误
     */
    PASSWORD_ERROR(1001,"密码错误"),
    /**
     * 账号禁用
     */
    ACCOUNT_DISABLE(1002,"账号被禁用"),
    /**
     * 未登录或token失效
     */
    NOT_LOGIN(1003,"未登录活Token失效"),



    ;

    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 异常信息
     */
    private final String message;

    ServiceExceptionEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
